//
//  Student.hpp
//  宿舍管理系统
//
//  Created by 孟强定 on 2020/6/26.
//  Copyright © 2020 mqd. All rights reserved.
//

#ifndef Student_hpp
#define Student_hpp

#include <stdio.h>
#include <string>
/*
 * 每个学生都有一个自己的Student类, 此类用来存放学生的跟中信息.
 *
 */
class Student{
private:
    static std::string projects[];
    static int idCnt;
    std::string name,major;
    int id,grade,_class;
    int roomInfo[4];
public:
    Student();
    Student(std::string name, std::string major, int id, int grade, int _class);
    void initName();
    void randMajor();
    void randId();
    void randGrade();
    void randClass();
    void init();
    void print();
    bool delRoom();
    int getBuildingId();
    int getFloorId();
    int getRoomId();
    int getbedId();
    std::string getName();
    int getId();
    std::string getRoom();
    void setRoom(int building ,int floor, int room, int bed);
};
#endif /* Student_hpp */


